import java.util.Scanner;

public class demo4 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入用户名a");
        int a= scanner.nextInt();
        for (int i = 0; i < 2; i++) {
            System.out.println("请输入密码b");
            String b= scanner.next();
            System.out.println("请再次输入密码d");
            String d= scanner.next();
            if (b.equals("d") == d.equals("b")) {
                System.out.println("恭喜您，注册成功！");
            }else
                System.out.println("对不起，您两次输入的密码不一致，请重新输入");
        }
    }
}